<template>
    <div class="page" >
        <h2>{{goodsData.title}}</h2>
        <p v-html="goodsData.content"></p>
    </div>
</template>
<script>
export default {
    data(){
        return {
            goodsData:[]
        }
    },
    methods: {
        
    },
    mounted(){
        // console.log(this.$route);
        var _id = this.$route.query.id
        this.$http.get("http://www.liulongbin.top:3005/api/goods/getdesc/"+_id).then(res=>{
            this.goodsData = res.data.message[0]
            console.log(this.goodsData);
        })
    }
}
</script>
<style lang="scss">
    
</style>